package com.py.credit.dao;

import com.py.credit.common.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RetrospectiveDao {

    /**
     * 追溯审计列表高级查询
     *
     * @param showColumns
     * @param additionalColumns
     * @param conditions
     * @param page
     * @return
     */
    List<Map<String, Object>> selectByConditionForPage(@Param(value = "columns") List<String> showColumns,
                                                       @Param(value = "additionalColumns") String[] additionalColumns,
                                                       @Param(value = "conditions") List<String> conditions,
                                                       @Param(value = "page") Page page);

    /**
     * 查看追溯审计详情
     *
     * @param id
     * @return
     */
    Map<String, Object> selectDetail(@Param(value = "id") String id);
}
